<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category   design_default
 * @package    Mage
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */
?>
<div class="col2-set">
    <div style="float:left;width:48.5%;">
        <div class="head-alt2">
            <h5 class="title"><?php echo $this->__('Contact Information') ?></h5>
            <a href="<?php echo $this->getUrl('customer/account/edit') ?>">Edit</a>
        </div>
        <p>
            <?php echo $this->htmlEscape($this->getCustomer()->getFirstname()) ?> 
            <?php echo $this->htmlEscape($this->getCustomer()->getLastname()) ?><br/>
            <?php echo $this->htmlEscape($this->getCustomer()->getEmail()) ?><br/>
            <a href="<?php echo $this->getChangePasswordUrl() ?>"><?php echo $this->__('Change Password') ?></a>
        </p>
    </div>

    <div style="float:right;width:48.5%;">
        <div class="head-alt2">
            <h5 class="title"><?php echo $this->__('Newsletters') ?></h5>
            <?php /*<a href="<?php echo $this->getUrl('newsletter/manage') ?>">Edit</a>*/?>
        </div>
        <p>
        	<?php if( $this->getIsSubscribed() ): ?>
                    <form id="form-validate" method="post" action="<?php echo $this->getUrl('newsletter/manage/save') ?>">
					<p>
					<label for="subscription">We will keep up to date all our latest special offers and product launches!<br/> Uncheck this box <input id="subscription" type="checkbox"  checked="checked" title="Newsletter Subscription" value="1" name="is_subscribed"/> to unsubscribe our Mailing List.</label>
					</p>
					<div class="button-set">
					<input type="image" alt="Save" src="<?php echo $this->getSkinUrl('images/btn_save.gif') ?>" onmouseover="this.src='<?php echo $this->getSkinUrl('images/btn_save_2.gif') ?>'" onmouseout="this.src='<?php echo $this->getSkinUrl('images/btn_save.gif') ?>'" />
					</div>
					</form>
            <?php else: ?>
                	<form id="form-validate" method="post" action="<?php echo $this->getUrl('newsletter/manage/save') ?>">
					<p>
					<label for="subscription">Don't miss out on our great money saving offers and competition prizes, check this box <input id="subscription" type="checkbox" title="Newsletter Subscription" value="1" name="is_subscribed"/> to join our mailing list. </label>
					</p>
					<div class="button-set">
					<input type="image" alt="Save" src="<?php echo $this->getSkinUrl('images/btn_save.gif') ?>" onmouseover="this.src='<?php echo $this->getSkinUrl('images/btn_save_2.gif') ?>'" onmouseout="this.src='<?php echo $this->getSkinUrl('images/btn_save.gif') ?>'" />
					</div>
					</form>
            <?php endif; ?>
            
            <?php if( $this->getIsSubscribed() ): ?>
                <?php //echo $this->__("We will keep up to date all our latest special offers and product launches!") ?>
            <?php else: ?>
                <?php //echo $this->__('Join our the Selkin Mailing List here. Don\'t miss out on great money saving offer and competition prizes!') ?>
            <?php endif; ?>
        </p>
    </div>
</div>
<br/>
